package gptma.bo.search;

import gptma.bo.model.project.Project;
import gptma.bo.model.request.RequestType;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class ClientRequestSearchCriteria implements Serializable {

	private static final long serialVersionUID = 5522441615526531248L;

	private RequestType requestType;

	private String title;

	private List<Project> projects;

	private Date creationDateFrom;

	private Date creationDateTo;

	/**
	 * @return the requestType
	 */
	public RequestType getRequestType() {
		return requestType;
	}

	/**
	 * @param requestType
	 *            the requestType to set
	 */
	public void setRequestType(RequestType requestType) {
		this.requestType = requestType;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the projects
	 */
	public List<Project> getProjects() {
		return projects;
	}

	/**
	 * @param projects
	 *            the projects to set
	 */
	public void setProjects(List<Project> projects) {
		this.projects = projects;
	}

	/**
	 * @return the creationDateFrom
	 */
	public Date getCreationDateFrom() {
		return creationDateFrom;
	}

	/**
	 * @param creationDateFrom
	 *            the creationDateFrom to set
	 */
	public void setCreationDateFrom(Date creationDateFrom) {
		this.creationDateFrom = creationDateFrom;
	}

	/**
	 * @return the creationDateTo
	 */
	public Date getCreationDateTo() {
		return creationDateTo;
	}

	/**
	 * @param creationDateTo
	 *            the creationDateTo to set
	 */
	public void setCreationDateTo(Date creationDateTo) {
		this.creationDateTo = creationDateTo;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return new StringBuilder("ClientRequestSearchCriteria[requestType=")
				.append(requestType).append(", title=").append(title)
				.append(", projects=").append(projects)
				.append(", creationDateFrom=").append(creationDateFrom)
				.append(", creationDateTo=").append(creationDateTo).append("]")
				.toString();
	}

}
